<?php
//用户修改个人资料
require "model/Mydatabase.class.php";
class UchangeController{
    function saveUchange(){
        $username=$_POST['username'];
        if(isset($username)) {
            $name=$_POST['name'];
            $action=$_POST['action'];
            $obj=new mydb();
            $sql="UPDATE usersinfo SET name = '$name', action = '$action'  WHERE username = '$username'";
            $res=$obj->doupdate($sql);
            if($res==1)
            {
                echo 1;
            };
        }
    }
}
?>